/**
 * 恭喜中奖模态框组件
 */
import {
  imageUrl,
} from '/common/config';

Component({
  data: {
    headImg: `${imageUrl}/lJMrrNKmBFCqERBxmAMl.png`,
    btnImg: `${imageUrl}/MznxniliEFuGqLLpQflQ.png`,
  },
  props: {
    awardData: {},
    show: false,
    onModalClose: () => {},
  },
  methods: {
    // 跳转报名小程序
    handleToMiniApp() {
      my.navigateToMiniProgram({
        appId: '2018072060666599',
        path: 'pages/small-routine-experience/experience/index',
      });
    },
    onModalClose() {
      this.props.onModalClose();
    },
  }
});